    <link rel="stylesheet" href="<{$res_url}>/css/common.css"/>
    <link rel="stylesheet" href="<{$res_url}>/css/index.css"/>
    <div class="aa">

    
    </div>

    <div class="outbox">
      <div id="J_body">
        <!--商品列表-->
        <div class="fixed_box"> <div class="top_box">     <span class="top_back J_topback"></span>     <h1>秒杀</h1>     <a href="javascript:void(0);" class="miji J_seckillMiji">秒杀秘籍</a> </div> <div class="swiper-container ban_box swiper-container-horizontal">     

        <ul class="swiper-wrapper banner_list J_menu" id="menu" style="transform: translate3d(0px, 0px, 0px); transition-duration: 1000ms;">        


          <{foreach from=$whyshopseckill_time item=item key=key}>
          <!-- class="swiper-slide active swiper-slide-active" -->
          <li  class="swiper-slide <{$item.isactive}>" id="actno_<{$item.whyshopseckill_id}>"   start_time="<{$item.seckill_starttime*1000}>"  end_time="<{$item.seckill_endtime*1000}>" seckill_id="<{$item.whyshopseckill_id}>"  data-actno="<{$item.whyshopseckill_time}>" static="<{$item.seckill_static}>" title="<{$item.seckill_title}>" style=""><p><{$item.short_time}></p><p><{$item.seckill_static}></p></li>



          <{/foreach}>


        </ul> 

      </div></div>


      <div class="ms_time J_remove" id="J_ms_time">
        <h3><{$item.seckill_title}>  </h3>
        <b></b> 
        <div class="timer-simple-seconds" timer="" timestamp="" datetime="">
          <span class="day">0</span>天
          <span class="hour">00</span>时
          <span class="minute">00</span>分
          <span class="second">00</span>秒
        </div> 
      </div>


      <div id="J_list">

      </div>


      <div class="switch J_switch hide">点击切换到下一场次</div>
    </div>
  </div>

  <!-- 底部导航 -->
  <div></div>
  <div class="appdownDangload hide_it J_appdownDangload" id="popAppdown" style="z-index: 666;">
    <div class="mbox">
      <p class="appdown_close J_appdown_close"><img src="./aaa_files/closen2.png"></p>
      <p class="appdown_logo J_appDown"><img src="./aaa_files/app_logo.png"></p>
      <p class="appdown_dsc J_appDown">
        <span>下载飞牛APP</span>
        <span>首次登录送<em>5</em>元</span>
      </p>
      <p class="appdown_down J_appDown">立即下载</p>
    </div>
  </div>



  <ul class="fixedbtn" id="J_fixedBtn">        <li class="search      hide_it" id="J_newBtnSearch"></li>        <li class="homepage    hide_it" id="J_newBtnHomepage"></li>        <li class="footprint   hide_it" id="J_newBtnFootprint"></li>        <li class="cart        hide_it" id="J_newBtnCart"><b class="hide_it J_navCartNumId">0</b></li>        <li class="top         hide_it" id="J_newBtnTop"></li>    </ul>



  <script id="tpl_Btn" type="text/html" data-insert-pos="before">    <ul class="fixedbtn" id="J_fixedBtn">        <li class="search      hide_it"    id="J_newBtnSearch"></li>        <li class="homepage    hide_it"    id="J_newBtnHomepage"></li>        <li class="footprint   hide_it"    id="J_newBtnFootprint"></li>        <li class="cart        hide_it"    id="J_newBtnCart"><b class="hide_it J_navCartNumId">0</b></li>        <li class="top         hide_it"    id="J_newBtnTop"></li>    </ul></script><div id="UniSwfStore_uniswfstore_0" style="position: absolute; top: -2000px; left: -2000px;"></div>

  <{script src="jquery-1.8.2.min.js" app=b2c}>
  <script type="text/javascript" src="<{$res_url}>/js/time.js"></script>
  <script type="text/javascript"> 
    var intval=null;
    function getseckill(nowsel){
      var id=nowsel.attr('seckill_id');
      var start_time=nowsel.attr('start_time');
      var end_time=nowsel.attr('end_time');
      var title=nowsel.attr('title');
      var static=nowsel.attr('static');

      var params = {"id":id};  
      var url = "<{link app=whyshopseckill ctl=site_whyshopseckill act=getgoods}>";  

      $.ajax({  
        type: "post",  
        url: url,   
        data: params,  
        success: function(msg){  
          $('#J_list').html(msg);
          $('#J_list').fadeIn('slow', function() {
            "opacity":"0.5"
          }).fadeOut('slow', function() {
            
          });;
        }  
      }); 


      //算倒计时

           // $('.timer-simple-seconds').attr('timer',1000);




      //秒杀标题替换
      $('#J_ms_time h3').html(title);
      // alert(static);

      //背景变化
      $('.swiper-slide').removeClass('skactive');
        nowsel.addClass('skactive'); 



       //是 结束 还是 离开始
       if(static=='活动进行中'){
        $('#J_ms_time b').html('离结束');
        $('.timer-simple-seconds').attr('timestamp',end_time);

          $('.timer-simple-seconds').show();
      }
      else if(static=='活动未开始'){
       $('#J_ms_time b').html('离开始');
       $('.timer-simple-seconds').attr('timestamp',start_time);
          $('.timer-simple-seconds').show();


       
     }else if(static=='活动已结束'){
       $('#J_ms_time b').html('');

       $('.timer-simple-seconds').hide();
                //$('.timer-simple-seconds').attr('timestamp',end_time);
              }
  
    //对所有的计时器进行处理
    var timers=$(".timer-simple-seconds");


    for(var i=0;i<timers.length;i++){
      var timer=$(timers[i]);


                clearInterval(intval);//先去掉

                  if(timer.attr("timestamp")){
            //如果是时间戳，则预处理一下时间为倒计时秒数
            prepareProcessTimestamp2Timer(timer);
          }else if(timer.attr("datetime")){
            //处理时间格式为倒计时秒数
            prepareProcessDatetime2Timer(timer);
          }
        //先调用一次，避免误差
        processTimer(timer);

        intval= setInterval(processTimer,1000,timer);
      
    }


  }

//getseckill();
var re;
$('.swiper-slide').bind('click',function(){
  var _this=$(this);
    //var ltime=end_time-start_time;
    getseckill(_this);
  //倒计时
  $("#J_list").animate({"left":"100px"})
  clearTimeout(re);
   re=setTimeout(function(){
    $(".nav_bj").animate({left:210})
   },500);
});


$(document).ready(function(){
 var nowsel= $('.skactive');
//alert(nowsel);
getseckill(nowsel);
})






</script>